<template>
    <router-link :to="url">
      {{text}}
    </router-link>
</template>

<script>
  export default {
    name: "category",
    props: {
      // 跳转url，必须
      url: {
        type: String,
        default: '/'
      },
      // 分类文本，必须
      text: String,
    }
  }
</script>

<style scoped>
  .item {
    margin-top: 10px;
    margin-right: 20px;
  }
</style>
